﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Lines
{
    public static class ScheduleBLL
    {
        public static int GetLineScheduleCount(IList<Condition> conditionArray)
        {
            return ScheduleDAL.GetLineScheduleCount(conditionArray);
        }

        public static List<ScheduleEntity> GetLineScheduleList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return ScheduleDAL.GetLineScheduleList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<ScheduleEntity> GetLineScheduleList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return ScheduleDAL.GetLineScheduleList(conditionArray, sortField, sortMode);
        }

        public static ScheduleEntity GetLineSchedule(int linescheduleID)
        {
            return ScheduleDAL.GetLineSchedule(linescheduleID);
        }

        public static int InsertLineSchedule(ScheduleEntity lineschedule)
        {
            return ScheduleDAL.InsertLineSchedule(lineschedule);
        }

        public static int UpdateLineSchedule(ScheduleEntity lineschedule)
        {
            return ScheduleDAL.UpdateLineSchedule(lineschedule);
        }

        public static int DeleteLineSchedule(int linescheduleID)
        {
            return ScheduleDAL.DeleteLineSchedule(linescheduleID);
        }

        public static int SetLineScheduleEnable(int linescheduleID)
        {
            return ScheduleDAL.SetLineScheduleEnable(linescheduleID);
        }

        public static int HitLineSchedule(int linescheduleID)
        {
            return ScheduleDAL.HitLineSchedule(linescheduleID);
        }
    }
}
